﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


//协议分发管理
public class ProtoPrecess:Singleton<ProtoPrecess>
{

    //分发协议
    public void Process(string sessionId, Int32 msgId, Int32 bodyLength, byte[] bodyBytes)
    {
        if (msgId == 100)
        {
            ProtoBuf.Login.RequestLogin a = ProtoBuf.Login.RequestLogin.ParseFrom(bodyBytes);
            LOG.Log(a.Param);
            LoginMgr.singleton.OnLogin(sessionId,a.Param);
        }
        else if (msgId == 200)
        {

        }

    }



}
